package cn.git.demo.service.impl;

import cn.git.demo.dao.OrderDetailDao;
import cn.git.demo.pojo.OrderDetail;
import cn.git.demo.service.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("orderDetailService")
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    private OrderDetailDao orderDetailDao;
    public List<OrderDetail> selectDetailListByOid(Long oid) {

        return  orderDetailDao.selectDetailListByOid(oid);
    }

    public void addOrderDetails(List<OrderDetail> list) {

        orderDetailDao.addOrderDetails(list);
    }
}
